package net.lahuobao.finance.entity.criticallog;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.SequenceGenerator;

/**   
 * @Title: Entity
 * @Description: 操作日志
 * @author zhangdaihao
 * @date 2016-09-07 13:49:46
 * @version V1.0   
 *
 */
@Entity
@Table(name = "critical_log", schema = "lahuobao")
@DynamicUpdate(true)
@DynamicInsert(true)
@SuppressWarnings("serial")
public class CriticalLog implements java.io.Serializable {
	/**log id*/
	private Integer criticalLogId;
	/**相关Id*/
	private Integer relatedId;
	/**日志*/
	private Short type;
	/**注释*/
	private String comment;
	/**操作员Id*/
	private String operateId;
	/**操作时间*/
	private Date operateTime;
	/**操作IP地址*/
	private String operateIp;
	
	/**
	 *方法: 取得java.lang.Integer
	 *@return: java.lang.Integer  log id
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name ="CRITICAL_LOG_ID",nullable=false,precision=10,scale=0)
	public Integer getCriticalLogId(){
		return this.criticalLogId;
	}

	/**
	 *方法: 设置java.lang.Integer
	 *@param: java.lang.Integer  log id
	 */
	public void setCriticalLogId(Integer criticalLogId){
		this.criticalLogId = criticalLogId;
	}
	/**
	 *方法: 取得java.lang.Integer
	 *@return: java.lang.Integer  相关Id
	 */
	@Column(name ="RELATED_ID",nullable=false,precision=10,scale=0)
	public Integer getRelatedId(){
		return this.relatedId;
	}

	/**
	 *方法: 设置java.lang.Integer
	 *@param: java.lang.Integer  相关Id
	 */
	public void setRelatedId(Integer relatedId){
		this.relatedId = relatedId;
	}
	/**
	 *方法: 取得java.lang.Integer
	 *@return: java.lang.Integer  日志
	 */
	@Column(name ="TYPE",nullable=false,precision=5,scale=0)
	public Short getType(){
		return this.type;
	}

	/**
	 *方法: 设置java.lang.Integer
	 *@param: java.lang.Integer  日志
	 */
	public void setType(Short type){
		this.type = type;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  注释
	 */
	@Column(name ="COMMENT",nullable=true,length=1000)
	public String getComment(){
		return this.comment;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  注释
	 */
	public void setComment(String comment){
		this.comment = comment;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  操作员Id
	 */
	@Column(name ="OPERATE_ID",nullable=false,length=36)
	public String getOperateId(){
		return this.operateId;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  操作员Id
	 */
	public void setOperateId(String operateId){
		this.operateId = operateId;
	}
	/**
	 *方法: 取得java.util.Date
	 *@return: java.util.Date  操作时间
	 */
	@Column(name ="OPERATE_TIME",nullable=false)
	public Date getOperateTime(){
		return this.operateTime;
	}

	/**
	 *方法: 设置java.util.Date
	 *@param: java.util.Date  操作时间
	 */
	public void setOperateTime(Date operateTime){
		this.operateTime = operateTime;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  操作IP地址
	 */
	@Column(name ="OPERATE_IP",nullable=false,length=20)
	public String getOperateIp(){
		return this.operateIp;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  操作IP地址
	 */
	public void setOperateIp(String operateIp){
		this.operateIp = operateIp;
	}
}
